<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Logs.aspx.cs" Inherits="Impact.Web.Admin.Logs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div style="text-align: right;">
        <asp:Literal ID="summary" runat="server" />
    </div>
    <asp:GridView ID="logGridView" runat="server" AutoGenerateColumns="False" Width="100%" 
            AllowPaging="True" 
            PageSize="20" 
            PagerSettings-NextPageText="Next"
            PagerSettings-NextPageImageUrl="images/book_next.png"
            PagerSettings-PreviousPageImageUrl="images/book_previous.png"
            PagerSettings-PreviousPageText="Prev" 
            PagerSettings-Mode="NextPrevious"
            PagerSettings-Position="TopAndBottom"
            OnPageIndexChanging="LogGridView_PageIndexChanging"  
            AlternatingRowStyle-BackColor="#eeeeee" >
        <Columns>
            <asp:BoundField DataField="Timestamp" HeaderText="Timestamp" SortExpression="Timestamp" />
            <asp:CheckBoxField DataField="IsDirty" HeaderText="IsDirty" SortExpression="IsDirty"
                Visible="False" />
            <asp:BoundField DataField="ThreadName" HeaderText="ThreadName" SortExpression="ThreadName"
                Visible="False" />
            <asp:BoundField DataField="MachineName" HeaderText="MachineName" SortExpression="MachineName"
                Visible="False" />
            <asp:BoundField DataField="ProcessID" HeaderText="ProcessID" SortExpression="ProcessID"
                Visible="False" />
            <asp:BoundField DataField="Win32ThreadId" HeaderText="Win32ThreadId" SortExpression="Win32ThreadId" />
            <asp:BoundField DataField="AppDomainName" HeaderText="AppDomainName" SortExpression="AppDomainName"
                Visible="False" />
            <asp:BoundField DataField="ProcessName" HeaderText="ProcessName" SortExpression="ProcessName"
                Visible="False" />
            <asp:BoundField DataField="Priority" HeaderText="Priority" SortExpression="Priority" />
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            <asp:BoundField DataField="EventID" HeaderText="EventID" SortExpression="EventID" />
            <asp:BoundField DataField="Severity" HeaderText="Severity" SortExpression="Severity" />
            <asp:BoundField DataField="FormattedMessage" HeaderText="FormattedMessage" SortExpression="FormattedMessage"
                Visible="False" />
            <asp:BoundField DataField="Message" HeaderText="Message" SortExpression="Message" />
            <asp:BoundField DataField="LogID" HeaderText="LogID" SortExpression="LogID" Visible="False" />
            <asp:CheckBoxField DataField="IsNew" HeaderText="IsNew" SortExpression="IsNew" Visible="False" />
            <asp:BoundField DataField="TableName" HeaderText="TableName" SortExpression="TableName"
                Visible="False" />
        </Columns>
    </asp:GridView>
    
    <br />
    
    <div style="text-align: right;">
        <impact:ImageLinkButton ID="clearLogButton" OnCommand="ClearLogCommand" Text="Clear Log" ImageUrl="images/bin_closed.png" 
            CssClass="AdminTableButton" runat="server" />
    </div>
    

</asp:Content>
